package com.example.eurekaclient.service.impl;

import com.example.eurekaclient.model.User;
import com.example.eurekaclient.service.TestService;
import org.springframework.stereotype.Service;

@Service
public class TestServiceImpl implements TestService {
    @Override
    public User getUser(User user) {
        System.out.println("user = " + user.toString());
        return user;
    }

    @Override
    public String postParam(String name) {
        return "传递的名称："+name;
    }

    @Override
    public String postObject(User user, String name) {
        System.out.println("user = " + user.toString());
        return "传递的名称："+name;
    }
}
